package com.zwl.chengguangservice.mobileApppayment;


import com.zwl.chengguangservice.core.common.AbstractPayAdaptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class GoodsTradeService extends AbstractPayAdaptor {


    private GoodsTradeManager goodsTradeManager;

    /**
     * 创建订单
     *
     * @param id 商品id
     * @return
     */
    @Autowired
    public String createOrder(long id) {

        return "";
    }

    @Override
    public void doPaySuccess(String outTradeNo) {
        //支付成功，这里一般要更新数据库的状态
    }

    @Override
    public void doPayFail(String outTradeNo) {
        //支付失败，这里一般要更新数据库的状态
    }

    @Override
    public void doRefundSuccess(String outTradeNo) {
        //退款成功，这里一般要更新数据库的状态
    }

    @Override
    public void doRefundFail(String outTradeNo) {
        //退款失败，这里一般要更新数据库的状态
    }
}